<template>
    <div class="content">
        <div class="journalism_details_breadcrumb">
            <el-breadcrumb separator-class="el-icon-arrow-right">
                <el-breadcrumb-item>您的位置</el-breadcrumb-item>
                <el-breadcrumb-item :to="{ path: '/industryInformation' }">行业资讯</el-breadcrumb-item>
                <el-breadcrumb-item>资讯详情</el-breadcrumb-item>
            </el-breadcrumb>
        </div>
        

        <div class="detail">
            <h3>{{ data.title }}</h3>
            <img v-if="data.url" :src="data.url" alt="" style="width: 100%;height:400px;">
            <div class="information">{{ data.information }}</div>
            <div v-for="(item, index) in data.list" :key="index">
                <span>{{ item.title }}</span>
                <div class="detail_item" v-for="(el, index) in item.detail" :key="index">
                    {{ el }}
                </div>
                <img v-if="item.url" :src="item.url" alt="" style="width: 100%;height:400px;">
            </div>

        </div>

    </div>
</template>

<script>
import { list } from './IndustryInformationData'
export default {
    created() {
        JSON.parse(JSON.stringify(list)).forEach(el => {
            if (this.$route.query.key == el.key) {
                this.data = el
            }
        })
    },
    data() {
        return {
            data: null
        };
    },
    components: {},
    watch: {},
    methods: {},
    computed: {},
}
</script>

<style scoped>
.content {
    min-height: calc(100vh - 260px);
}

.journalism_details_breadcrumb {
    width: 70%;
    margin: auto;
    padding-top: 3%;
    box-sizing: border-box;
    /* position: absolute;
    top: 0;
    left: 10%; */
    z-index: 999;
}

.journalism_details_breadcrumb>>>.el-breadcrumb__inner {
    font-size: 14px;
    font-weight: normal;
    color: #04113B;
}

h3 {
    font-weight: bold;
    font-size: 32px;
    margin: 20px 0 50px 0;
    text-align: center;
}

.detail {
    padding: 10px 15%;
    box-sizing: border-box;
}

.detail>div {
    margin-bottom: 10px;

}

span {
    display: block;
    font-size: 20px;
    color: rgb(54, 85, 165);
    margin-bottom: 10px;
    font-weight: 500;
}

.detail_item {
    /* padding-left: 2rem; */
    box-sizing: border-box;
    /* text-indent: 2rem; */
    margin-bottom: 20px;
}

.information {
    line-height: 40px;
}
</style>